<body <?php if (isset($onload)) echo $onload; ?>>
<!-- Header : start -->

<div id="wrap">
 <div id="header">
  <span class="headerTitle"><?php echo $conf['website_name_short']; ?></span><br /><br />
  <?php include (PATH . '/templates/' . $cookie_template . '/menu2.php'); ?>
 </div>
 <div id="sidebar">
  <?php if (!isset($_SESSION['login'])) include (PATH . '/templates/' . $cookie_template . '/login.php'); ?>
  <?php
  
  // If quick search is enabled
  if ($conf['quick_search'] == 'ON')
  	include (PATH . '/templates/' . $cookie_template . '/searchform.php');
  	
  ?>
  <?php include (PATH . '/templates/' . $cookie_template . '/menu.php'); ?>
  <?php
  
  // If settings box is enabled
  if ($conf['settings_box'] == 'ON')
  	include (PATH . '/options.php');
  
  ?>
  <?php
  
  // If agents' online is enabled
  if ($conf['online_box'] == 'ON')
  	include (PATH . '/online.php'); 
  
  ?>
 </div>
 <div id="content">
  <?php include ( PATH . '/banner.php' ); ?>
<!-- Header : stop -->
<!-- Main Content table : start -->